<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--引用CSS-->
	<link rel="stylesheet" type="text/css" href="css/mycss.css">
	
  </head>
  
  <body>
  <table width="773" height="787" border="0" align="center">
  
  <tr>
    <td height="112" colspan="2"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  
  
  <tr>
    <td width="25%" height="500" valign="top" bgcolor="8CCBF6">
    <jsp:include flush="true" page="leftAdmin.jsp"></jsp:include>
    </td>
    
    
    <td width="75%" valign="top"><div align="center" >    
    
     <center>
     <br>
     <h1>题目：<s:property value="#request.message.title"/><br></h1> 
     <br>
              
    <table width="80%" align="center" border="1">

    <tr>    
    <th>题目</th>
    <th>指导教师</th>
    <th>专业</th>
    <th>编程语言</th>
    <th>入学年级</th>
    <th>团队成员</th>
    </tr>
    <s:iterator value="#request.message" >
    <tr>
     <td>
        <s:property value="title"/>
    </td>
     <td>
        <s:property value="teacher"/>
    </td>
    <td>
        <s:property value="major"/>
    </td>
     <td>
        <s:property value="language"/>
    </td>
    <td><s:property value="grade"/></td>
    <td><s:property value="member"/></td>
    </tr>

    </s:iterator>
    </table>

<br>
       
            <hr> 
    <s:iterator value="#request.main" >
    
	    <s:property value="star" /> 
	    <s:property value="video" /> 
	    <s:property value="image1" /> 
	    <s:property value="image2" /> 
	    <s:property value="image3" /> 
	    <s:property value="content" escape="false" /> 
<!--escape="false" 
 文章展示的时候，文章内容由于采用的富文本编辑器，所以里面是带有HTML标签的，
这时直接用标签进行输出，例如：<s:property value="Obj.content" />
HTML标签会原样输出，因为struts标签会对html进行自动的编码，并且此标签有内置属性escape。
此属性默认值是true，就是它控制着是否自动编码，所以加入escape="false"就OK了
例如<s:property value="Obj.content" escape="false"/>                      
-->
    </s:iterator>
      
        
    </center>


    </div></td>
  </tr>
  
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div></td>
  </tr>
    
  
</table>
  </body>
</html>

